import { defineStore } from 'pinia'

export const useAuth = defineStore('auth', {
  state: () => ({
    appId: 5,
    userInfo: {
      token: '',
      realName: ''
    }
  }),
  getters: {
    token: (state) => state.userInfo.token
  },
  persist: true
})
